package org.autumn.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.sql.SQLException;

public class TestSpring {
    public static void main(String[] args) throws SQLException {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

        UserService userService = context.getBean("userService", UserService.class);

        userService.updateUserMoneyNoInvade(1, 50);

    }
}
